<template>
  <div class="column-center odds-item" :class="{ selected: isSelected }" @click="selectBtn">
    <span class="number all-center">{{ data.number }}</span>
  </div>
</template>

<script setup lang="ts">
type Props = {
  data: {
    number: number
    odds?: number
    maxOdds?: number
  }
  isSelected: boolean
}

defineProps<Props>()

const emits = defineEmits(['selectOdds'])

const selectBtn = () => {
  emits('selectOdds')
}
</script>

<style scoped lang="less">
.odds-item {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 38px;
  width: 38px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: url('@/assets/img/bet/bet_btn_round.png') center center no-repeat;
  background-size: 36px 36px;
  color: #A2ABFF;

  &.selected {
    color: #fff;
    background-image: url('@/assets/img/bet/bet_btn_round_active.png');
  }

  .number {
    font-size: 18px;
  }
}
</style>
